/**财务管理-积分API**/
import obj from '@/utils/request'
let {request,baseURL} = obj

//分页查询
export function getIntegral(params) {
  return request({
    url: '/integral',
    method: 'get',
    params
  })
}
//修改
export function modIntegral(data) {
  return request({
    url: '/integral',
    method: 'put',
    data
  })
}
//添加
export function addIntegral(data) {
  return request({
    url: '/integral',
    method: 'post',
    data
  })
}
//删除
export function delIntegral(id) {
  return request({
    url: '/integral/'+id,
    method: 'delete',
  })
}
//获取流水号
export function getIntegralCode() {
  return request({
    url: '/integral/code',
    method: 'get',
  })
}
//获取来源与用途
export function getIntegralUseType() {
  return request({
    url: '/integral/useType',
    method: 'get',
  })
}

